#include "Minotaur.h"
#include <iostream>
#include <string>
using namespace std;


Minotaur::Minotaur(string monsterType, int monsterHealth, int xLoc, int yLoc){
	type = monsterType;
	health=monsterHealth;
	maxHealth=monsterHealth;
	level =4;
	attack = 5;
	alive = true;
	xLocation = xLoc;
	yLocation = yLoc;

	}

int Minotaur::getCurrentHealth(){
	return health;
	}

int Minotaur::getXLocation(){
	return xLocation;
	}

int Minotaur::getYLocation(){
	return yLocation;
	}

int Minotaur::getAttack(){
	int dice = rand();
	if ((dice%10)>8)
		enrage();
	return attack;
	}

int Minotaur::getlevel(){
	return level;
	}

string Minotaur::getType(){
	return type;
	}

void Minotaur::enrage(){
	attack +=5;	
	cout<<"Minotaur hes become enraged!"<<endl;
	}

void Minotaur::takeDamage(int dmg){
	int dice = rand();
	if ((dice%10)>8)
		enrage();
	health -= dmg;
	if (health <=0)
		alive = false;
	}

bool Minotaur::isAlive(){
	return alive;
	}

